<template>
    <div>
        <div>
            维修流程
            <el-steps :active="2">
                <el-step title="提交维修信息" description="提交成功 2020.09.09 10:12"></el-step>
                <el-step title="审核中" description="物业审核中 2020.09.09 10:12"></el-step>
                <el-step title="维修指派" description="指派维修人员"></el-step>
                <el-step title="完成维修" description="填写维修记录"></el-step>
            </el-steps>
        </div>
        <div>
            <el-descriptions title="报修信息" v-for="(item,index) in tableData" :key="index">
                <el-descriptions-item label="报修房屋">{{item.houseingName}}</el-descriptions-item>
                <el-descriptions-item label="维修项目">{{item.visitorsName}}</el-descriptions-item>
                <el-descriptions-item label="标题">{{item.theTitle}}</el-descriptions-item>
                <el-descriptions-item label="问题描述">{{item.problemDescription}}</el-descriptions-item>
                <el-descriptions-item label="手机号码">2022/09/09</el-descriptions-item>
                <el-descriptions-item label="预约日期">{{item.appointmentTime}}</el-descriptions-item>
            </el-descriptions>
        </div>
        <div>
                <el-button @click="shenhe('1')" type="text" size="small">审核通过</el-button>
                <el-button @click="shenhe('0')" type="text" size="small">审核不通过</el-button>
                <el-button @click="fan()"  type="text" size="small">返回</el-button>
        </div>
    </div>
</template>

<script>
    export default {
        data() {
            return {
                //审核意见
                Opinion: '',
                tableData:[]
            }
        },
        created() {
            //查询我的基本信息
            this.findAll();

        },
        methods: {
            findAll(){
                this.$axios
                    .get("systemuser/sbaoxiu/findById", {
                        params: {
                            //获取的周期
                            id: this.$route.params.id,
                        },
                    })
                    .then((res) => {
                        console.log(res)
                        this.tableData =  res.data;
                    });
            },
            shenhe(s){
                this.$axios
                    .get("systemuser/sbaoxiu/shenhe", {
                        params: {
                            //获取的周期
                            id: this.$route.params.id,
                            shenhe:s
                        },
                    })

            }
        }
    }
</script>

<style scoped>

</style>
